<nz-space style="text-align:center">

  <button *nzSpaceItem nz-button nzType="primary"
          (click)="sseEmitterClick()"
          [nzLoading]="sseEmitterLoading"
          nz-tooltip nzTooltipTitle="SseEmitter 流式接口">
    SseEmitter 流式接口
  </button>

  <button *nzSpaceItem nz-button nzType="primary"
          (click)="directSseEmitterClick()"
          [nzLoading]="directSseEmitterLoading"
          nz-tooltip nzTooltipTitle="调用 SseEmitter 流式接口">
    调用 SseEmitter 流式接口
  </button>

  <button *nzSpaceItem nz-button nzType="primary"
          (click)="webClientDirectSseEmitterClick()"
          [nzLoading]="webClientDirectSseEmitterLoading"
          nz-tooltip nzTooltipTitle="使用 webClient 调用 SseEmitter 流式接口">
    使用 webClient 调用 SseEmitter 流式接口
  </button>

</nz-space>

<br><br>

<nz-space style="text-align:center">

  <div *ngIf="sseData">
    <h2>实时数据:</h2>
    <textarea nz-input placeholder="Controlled autosize" [nzAutosize]="{ minRows: 3, maxRows: 100 }" >
        {{ sseData }}
    </textarea>
  </div>

</nz-space>
